<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class UploadFile extends Model
{
    protected $table = 'upload_file';

    protected $appends = ['file_path'];

    /**
     * 获取图片完整路径
     * @return string
     */
    public function getFilePathAttribute()
    {
        return $this->file_url . '/' . $this->file_name;
    }
}
